# -*-coding:utf-8-*-
"""
@project: python-project
@Time: 2024-08-15 15:27
@Author: Loneliness_Burial
@File: demo.py
@Motto: 深情不改必坠死海
@software: pycharm
@version: python 3.7
"""
import tkinter as tk

windows = tk.Tk()
windows.title("hello world")
lab=tk.Label(
    master=windows,
    text='你好世界',
    fg="white",  # 前景色
    bg="black",  # 背景色
    width=40,  # 宽度
    height=20  # 高度
)
lab.pack()  # 将标签放置到主窗口中
windows.mainloop()